package com.sxt;

import java.awt.*;

public class Object {
    int x;
    int y;

    int width;
    int height;

    Image img;
    //用来判断抓取
    Boolean flag;
    //重量
    int m;
    //积分
    int count;
    //类型 1 金块  2石头
    int type;
    void paintSelf(Graphics g){
        g.drawImage(img,x,y,null);
    }

    public int getWidth() {
        return width;
    }
    public Rectangle getRec(){
        return new Rectangle(x,y,width,height);
    }
}
